aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/invoice/[id]/paid
Commit message (Collapse)AuthorAgeFilesLines
* invoice: a reusable bolt12 offer has no terminal paid stateAdam Soltys2026-09-221-1/+15
| | | | | | | | | | | | | | | | | | | | | A bolt12 offer is a standing payment code. CLN derives the same offer_id from the same (amount, description), so re-creating one hands back the original record, whose `received` has accumulated over the offer's whole lifetime. The invoice layout read that as "this invoice was paid" and redirected to the success screen, so reopening a long-lived offer never showed the QR and left no way to copy the lno. Treat a payment as celebratory only when it arrives while the page is open: the socket handler now passes the amount of that payment as `?paid=<amount>`, and the layout uses it in place of the lifetime total for reusable offers. Single-use invoices keep the existing logic, so a partly-paid invoice still stays on the QR rather than celebrating early. The success screen showed lifetime `received` for the same reason, which misreported a single payment to a long-lived offer; it now renders the amount the socket reported, which is already net of tip. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
* nostr sign inAdam Soltys2025-01-031-2/+9
|
* iconify noobserverAdam Soltys2024-12-301-1/+1
|
* fix ecash rateAdam Soltys2024-12-051-1/+1
|
* warningsAdam Soltys2024-11-261-25/+12
|
* payment amount helpersAdam Soltys2024-11-141-59/+15
|
* amount componentAdam Soltys2024-11-141-7/+14
|
* svelte 5Adam Soltys2024-11-081-4/+8
|
* dark stylesAdam Soltys2024-11-051-1/+1
|
* fix some redirectsAdam Soltys2024-09-171-1/+1
|
* remove transitionsAdam Soltys2024-09-171-1/+1
|
* move routesAdam Soltys2024-09-171-0/+85
|
* potsAdam Soltys2023-01-181-62/+0
|
* payments migrationAdam Soltys2023-01-131-2/+1
|
* server redis migrationAdam Soltys2023-01-131-2/+2
|
* transaction list stylesAdam Soltys2022-12-151-1/+1
|
* prettierAdam Soltys2022-12-151-3/+1
|
* show users involved in voucher creation/redemptionAdam Soltys2022-12-151-0/+4
|
* subtract tip from received amountAdam Soltys2022-11-121-4/+4
|
* style tweaksAdam Soltys2022-11-111-6/+4
|
* refactor settingsAdam Soltys2022-11-091-27/+41
|
* display tipsAdam Soltys2022-11-031-3/+12
|
* invoice requestsAdam Soltys2022-11-031-2/+2
|
* move to app layoutAdam Soltys2022-11-021-0/+40